import request from '/@/utils/request';
// 查询列表
export function listLkAutocode(query:any) {
    return request({
      url: '/autocode/list',
      method: 'get',
      params: query
    })
  }
  // 查询详细
  export function getLkAutocode(autoCodeID:any) {
    return request({
      url: '/autocode/get',
      method: 'get',
      params: {
        id: autoCodeID.toString()
      }
    })
  }
  // 新增
  export function addLkAutocode(data:any) {
    return request({
      url: '/autocode/add',
      method: 'post',
      data: data
    })
  }
  // 修改
  export function updateLkAutocode(data:any) {
    return request({
      url: '/autocode/edit',
      method: 'put',
      data: data
    })
  }
  // 删除
  export function delLkAutocode(autoCodeIDs:any) {
    return request({
      url: '/autocode/delete',
      method: 'delete',
      data:{
        ids:autoCodeIDs
      }
    })
  }
  